import request from '@/utils/request'

// 上传图片
export function uploadPhoto(data) {
    return request({
      url: '/user/user/uploadPhoto',
      method: 'post',
      data
    })
  }

  // 根据字典类型查询字典数据信息
export function getDicts(linkurl) {
  return request({
    url: linkurl,
    method: 'get'
  })
}

  //获取城市 
export function getCitys(params) {
  return request({
    url: '/user/user/city',
    method: 'get',
    params
  })
}
//获取地区
export function getRegions(params) {
  return request({
    url: '/user/user/area',
    method: 'get',
    params
  })
}
